<?php
namespace app\model;

use think\Model;
class Info extends Model{
    protected $pk='sid';

    public function login(){
        return $this->hasOne(Login::class,'uid','sid');
    }
    public function grade(){
        return $this->hasMany(Grade::class,'sid','sid');
    }
}